import axios from 'axios'

axios.defaults.baseURL = '/api/'

axios.interceptors.response.use(config => {
  return config.data
})

const api = {}

api.getSeller = () => axios.get('seller')

api.getMap = () => axios.get('map')

api.getTrend = () => axios.get('trend')

export default api
